<?xml version="1.0" encoding="utf-8"?>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page import="java.io.*" %>
<%@ page import="java.util.*" %>
<%@ page import="java.text.SimpleDateFormat" %>
<%@ page import="cn.kgb.javabean.*" %>
<%@ page import="cn.kgb.dao.*" %>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<% response.setContentType("text/vnd.wap.wml"); %>
<wml>
<card title="克格勃工作中心">
新闻.<a href="">图书</a><br/>
【今日头条】 <a href="">更多>></a><br/>
<%
	ResourcesDAO resDAO = new ResourcesDAO();
	List todayTopNew = resDAO.getResourcesByType(3,"凤凰资讯-大陆",3,true);
	Iterator its = todayTopNew.iterator();
	while(its.hasNext()){
		Resources res = (Resources)its.next();
		%>
		<a href="content.jsp?resid=<%=res.getId()%>"><%=res.getTitle() %></a><br/>
		<%
	}
	todayTopNew = resDAO.getResourcesByType(3,"凤凰资讯-国际",3,true);
	its = todayTopNew.iterator();
	while(its.hasNext()){
		Resources res = (Resources)its.next();
		%>
		<a href="content.jsp?resid=<%=res.getId()%>"><%=res.getTitle() %></a><br/>
		<%
	}
 %>
 【内地资讯】 <a href="">更多>></a><br/>
<%
	resDAO = new ResourcesDAO();
	todayTopNew = resDAO.getResourcesByType(3,"凤凰资讯-大陆",13,true);
	its = todayTopNew.iterator();
	its.next();
	its.next();
	its.next();
	while(its.hasNext()){
	    
		Resources res = (Resources)its.next();
		%>
		<a href="content.jsp?resid=<%=res.getId()%>"><%=res.getTitle() %></a><br/>
		<%
	}
	
 %>
  【社会百态】 <a href="">更多>></a><br/>
<%
	resDAO = new ResourcesDAO();
	todayTopNew = resDAO.getResourcesByType(3,"凤凰资讯-社会",10,true);
	its = todayTopNew.iterator();
	while(its.hasNext()){
	    
		Resources res = (Resources)its.next();
		%>
		<a href="content.jsp?resid=<%=res.getId()%>"><%=res.getTitle() %></a><br/>
		<%
	}
	
 %>
   【军事天地】 <a href="">更多>></a><br/>
<%
	resDAO = new ResourcesDAO();
	todayTopNew = resDAO.getResourcesByType(3,"凤凰资讯-军事",10,true);
	its = todayTopNew.iterator();
	while(its.hasNext()){
	    
		Resources res = (Resources)its.next();
		%>
		<a href="content.jsp?resid=<%=res.getId()%>"><%=res.getTitle() %></a><br/>
		<%
	}
	
 %>
    【历史长河】 <a href="">更多>></a><br/>
<%
	resDAO = new ResourcesDAO();
	todayTopNew = resDAO.getResourcesByType(3,"凤凰资讯-历史",10,true);
	its = todayTopNew.iterator();
	while(its.hasNext()){
	    
		Resources res = (Resources)its.next();
		%>
		<a href="content.jsp?resid=<%=res.getId()%>"><%=res.getTitle() %></a><br/>
		<%
	}
	
 %>
 精彩资讯就在此！<br/>copyright@克格勃工作中心<br/>
 [<%=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(Calendar.getInstance().getTime()) %>]
</card>
</wml>